package com.hzky.demo.service;

import com.hzky.demo.dao.HomeworkDao;
import com.hzky.demo.model.Homework;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by admin on 2017/6/8.
 */
@Service
public class HomeworkService {
    @Autowired
    HomeworkDao homeworkDao;

    public Homework getHomeworkbyId(Integer id)
    {
        return homeworkDao.findOne(id);
    }
}
